package com.house.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.house.biz.DistrictBiz;
import com.house.dao.DistrictDao;
import com.house.entity.District;

@Service("districtBiz")
public class DistrictBizImpl implements DistrictBiz {
	@Autowired
	private DistrictDao dao;
	
	@Override
	public List<District> getAllDistricts() {
		return dao.getAllDistricts();
	}

	@Override
	public District getByDistrictId(int id) {
		return dao.getByDistrictId(id);
	}

	@Override
	public void addDistrict(District district) {
		dao.addDistrict(district);

	}

	@Override
	public void delDistrict(int id) {
		dao.delDistrict(id);

	}

	@Override
	public void updateDistrict(District district) {
		dao.updateDistrict(district);

	}

}
